@import url('open-iconic/font/css/open-iconic-bootstrap.min.css');

html, body {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

h1:focus {
    outline: none;
}

a, .btn-link {
    color: #0071c1;
}

.btn-primary {
    color: #fff;
    background-color: #1b6ec2;
    border-color: #1861ac;
}

.content {
    padding-top: 1.1rem;
}

.valid.modified:not([type=checkbox]) {
    outline: 1px solid #26b050;
}

.invalid {
    outline: 1px solid red;
}

.validation-message {
    color: red;
}

#blazor-error-ui {
    background: lightyellow;
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
    display: none;
    left: 0;
    padding: 0.6rem 1.25rem 0.7rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
}

    #blazor-error-ui .dismiss {
        cursor: pointer;
        position: absolute;
        right: 0.75rem;
        top: 0.5rem;
    }

.blazor-error-boundary {
    background: url() no-repeat 1rem/1.8rem, #b32121;
    padding: 1rem 1rem 1rem 3.7rem;
    color: white;
}

.game-container {
    display: flex;
    justify-content: center; /* Ë®Æ½¾ÓÖÐ */
    align-items: center; /* ´¹Ö±¾ÓÖÐ */
    flex-direction: column;
    gap: 10px;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 250, 255, 0.2);
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.5);
    margin-top: 20px; /* ¸ù¾ÝÐèÒªµ÷ÕûÉÏ±ß¾à */
    margin-bottom: 20px; /* ¸ù¾ÝÐèÒªµ÷ÕûÏÂ±ß¾à */
}

.row {
    display: flex;
    justify-content: center; /* Ê¹Ã¿ÐÐµÄ´É×©Ë®Æ½¾ÓÖÐ */
    gap: 5px; /* µ÷Õû´É×©Ö®¼äµÄ¼ä¸ô */
}

.tile {
    width: 50px;
    height: 50px;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #eeeeee;
    font-size: 20px;
    font-weight: bold;
    border: 1px solid #999;
}

.controls {
    margin-top: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
}

button {
    padding: 10px;
    font-size: 18px;
    cursor: pointer;
}

.game-over {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 20px;
    text-align: center;
    border-radius: 10px;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: cornflowerblue;
    text-align: center;
}

div {
    color: #e48bfa;
}

.timer{
    font-size:1em;
    margin:20px;
    padding:0 30px;
    height:52px;
    border:1px solid #e48bfa;
    border-radius:10px;
    display:inline-flex;
    align-items:center;
    justify-content:center;
    transition:all .3s ease;

    /* 1. 去掉聚焦圆环 */
    outline:none;

    /* 2. 改字色 */
    color:#e48bfa;          /* 想用主题色可改成 var(--neutral-foreground-rest) */
}

.timer:focus-visible{
    outline:2px solid #e48bfa;
    outline-offset:2px;
}

.timer::after{
    display: none !important;
}

.timer:hover {
    background-color: #282828;
}

.date-bar {
    display: flex;
    gap: 1rem;
    align-items: end;
    justify-content: center;   /* ← 关键：水平居中 */
}

.blazor-error-boundary::after {
    content: "An error has occurred."
}
